package com.corpgovernment.organization.mapper;

import com.corpgovernment.organization.common.mybatis.TkMapper;
import com.corpgovernment.organization.dto.MbFreshPassengerRelationDTO;
import com.corpgovernment.organization.entity.db.MbFreshPassengerRelation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wangyujue
 */
@Repository
public interface MbFreshPassengerRelationMapper extends TkMapper<MbFreshPassengerRelation> {

    List<MbFreshPassengerRelationDTO> pageByUid(@Param("uid") String uid);

    int updateFreshTime(@Param("ids") List<Long> ids);

    void deletedRelations(@Param("ids") List<Long> deletedList);

    int deletedRelation(@Param("uid") String uid, @Param("freshUid") String freshUid);

	List<MbFreshPassengerRelation> selectInIds(@Param("ids") List<Long> ids);

	int deletedRelationByUid(@Param("uid") String uid);
}
